package com.ruoyi.order.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.order.domain.UserDelivery;
import com.ruoyi.order.domain.Vo.UserDeliveryVo;

/**
 * 用户快递地址Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-04
 */
public interface UserDeliveryMapper 
{
    /**
     * 查询用户快递地址
     * 
     * @param addressID 用户快递地址主键
     * @return 用户快递地址
     */
    UserDelivery selectUserDeliveryByAddressID(Integer addressID);

    /**
     * 查询用户快递地址列表
     * 
     * @param userDelivery 用户快递地址
     * @return 用户快递地址集合
     */
    List<UserDelivery> selectUserDeliveryList(UserDelivery userDelivery);

    /**
     * 新增用户快递地址
     * 
     * @param userDelivery 用户快递地址
     * @return 结果
     */
    int insertUserDelivery(UserDelivery userDelivery);

    /**
     * 修改用户快递地址
     * 
     * @param userDelivery 用户快递地址
     * @return 结果
     */
    int updateUserDelivery(UserDelivery userDelivery);

    /**
     * 删除用户快递地址
     * 
     * @param addressID 用户快递地址主键
     * @return 结果
     */
    int deleteUserDeliveryByAddressID(Integer addressID);

    /**
     * 批量删除用户快递地址
     * 
     * @param addressIDs 需要删除的数据主键集合
     * @return 结果
     */
    int deleteUserDeliveryByAddressIDs(String[] addressIDs);

    List<UserDeliveryVo> getUserDeliveryPage(Map<String, Object> map);

    List<UserDeliveryVo> getUserDeliveryPageList(Map<String, Object> map);
}
